import gtk, pygtk, math
pygtk.require('2.0')
import Point, DrawingController

class Board(gtk.DrawingArea):
	
	def __init__(self):
		gtk.DrawingArea.__init__(self)
		self.set_size_request(400,300)
		self.set_events(gtk.gdk.BUTTON_PRESS_MASK | gtk.gdk.POINTER_MOTION_MASK |gtk.gdk.POINTER_MOTION_HINT_MASK)
		
		drawing_state = gtk.STATE_NORMAL # no special state of operation
		bg_color = gtk.gdk.Color('white')
		self.modify_bg(drawing_state, bg_color)
		
		self.__mouse_state = False
		self.points = []
	
	def get_mouse(self):
		return self.__mouse_state
	
	def change_mouse(self):
		self.__mouse_state = not self.__mouse_state
	
	def set_mouse(self, state):
		self.__mouse_state = state
